
export const driverRules =  {
  identification:[
    { required: true, message: '请输入身份证号', trigger: 'blur' },
    { pattern:/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/, message: "请输入正确身份证号", trigger: "blur" },
  ],
  name: [
    { required: true, message: '请输入姓名', trigger: 'blur' }
  ],
  mobile:[
    { required: true, message: '请输入手机号', trigger: 'blur' },
    { pattern: /^1[3|4|5|7|8][0-9]{9}$/, message: "请输入正确手机号", trigger: "blur" },
  ],
  'driver_bank.card_number':[
    { required: true, message: '请输入银行卡号', trigger: 'blur' },
    { min: 8, max: 32, message: '请输入正确银行卡号', trigger: 'blur' }
  ],
  'driver_bank.mobile':[
    { required: true, message: '请输入银行预留手机号', trigger: 'blur' },
    { pattern: /^1[3|4|5|7|8][0-9]{9}$/, message: "请输入正确手机号", trigger: "blur" },
  ],
  'driver_bank.name':[
    { required: true, message: '请输入银行卡号所属银行', trigger: 'blur' },
  ],
  
 

  nation:[
    { required: true, message: '请选择民族', trigger: 'change' },
  ],
  //
  identification_status:[
    { required: true, message: '请选择身份证状态', trigger: 'change' },
  ],
  codeDate:[
    {message: '请选择身份证有效期', trigger: 'change' },
  ],
  identification_start_time:[
    {message: '请选择身份证开始时间', trigger: 'change' },
  ],
  identification_front_pic:[
    { required: true, message: '请上传身份证正面图片', trigger: 'change' },
  ],
  identification_back_pic:[
    { required: true, message: '请上传身份证反面图片', trigger: 'change' },
  ],
  region_id:[
    { required: true, message: '请选择三级省市区', trigger: 'change' },
  ],
  identification_address:[
    { required: true, message: '请输入详细地址', trigger: 'blur' },
  ],
  //
  'driver_license.driver_alidity_vo.value':[
    { required: true, message: '请选择驾驶证状态', trigger: 'change' },
  ],
  jiaDate:[
    {  message: '请选择驾驶证有效期', trigger: 'change' },
  ],
  
  'driver_license.start_time':[
    {  message: '请选择驾驶证开始时间', trigger: 'change' },
  ],
  'driver_license.front_pic':[
    { required: true, message: '请上传驾驶证主页图片', trigger: 'change' },
  ],
  'driver_license.subpage_pic':[
    { required: true, message: '请上传则驾驶证副页图片', trigger: 'change' },
  ],
  'driver_license.type':[
    { required: true, message: '请选择准驾车型', trigger: 'change' },
  ],

  'driver_license.authority':[
    { required: true, message: '请输入驾驶证发证机关', trigger: 'blur' },
  ],
  'driver_qualification.code':[
    { required: true, message: '请输入从业资格证号', trigger: 'blur' },
  ],
  'driver_qualification.end_time':[
    { required: true, message: '请选择从业资格证有效期截止日期', trigger: 'change' },
  ],
  'driver_qualification.pic':[
    { required: true, message: '请上传从业资格证图片', trigger: 'change' },
  ]
  

}
